interface responseData {
  code: number,
  ok: boolean,
  message: string
}

// 职位数据类型
export interface roleData {
  id? : number | string,
  createTime?: string,
  updateTime?: string,
  roleName?: string,
  remark?: null
}

// 全部职位接口类型
export interface allRoleResponse extends responseData {
  data: {
    records: roleData[],
    total: number,
    size: number,
    current: number,
    orders: [],
    optimizeCountSql: boolean,
    hitCount: boolean,
    countId: null,
    maxLimit: null,
    searchCount: boolean,
    pages: number
  }
}

// 菜单与数组按钮类型
export interface NemuData {
	id: number | string;
	createTime?: string;
	updateTime?: string;
	pid: number | string;
	name: string;
	code: string;
	toCode: string;
	type: number;
	status?: any;
	level: number;
	children: NemuData[];
	select: boolean;
}

export interface allPermissionResponse extends responseData {
  data: NemuData[]
}